<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/standard/link_image.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  Use this class to create images with links.
 */

require_once("image.php");

class LinkImage extends Image
{
    public $Link_to;
    public $Mouse_over;
    
    public function __construct($filename,$link_to)
    {
		parent::__construct($filename);
		$this->Link_to = $link_to;
    }
    
    public function Render()
    {
		print ("<a title=\"$this->Mouse_over\" href='{$this->Link_to}'><img src='{$this->Filename}'></a>");	
    }
}

?>